package com.yvon.service.demo.algorithm.offer.ext;

public class TreeNode {

    public int value;

    public TreeNode right;

    public TreeNode left;

    public TreeNode(int value) {
        this.value = value;
    }


    public static void prePrint(TreeNode root) {
        if (root == null)
            return;
        System.out.print(root.value + " ");
        prePrint(root.left);
        prePrint(root.right);
    }
}
